package cc.taofoo.Design.BuilderModel;

public class ComputerVendor {
    ComputerBuilder computerBuilder;

    public ComputerVendor(ComputerBuilder computerBuilder) {
        this.computerBuilder = computerBuilder;
    }

    public Computer build(){
        computerBuilder.buildCPU();
        computerBuilder.buildDisk();
        computerBuilder.buildMainBoard();
        computerBuilder.buildMemory();
        computerBuilder.buildMonitor();
        return computerBuilder.getComputer();
    }

}
